<?php
//require '3rdparty/mobile_device_detect.php';

/*
$ssid = @$_REQUEST['ssid'];
if (isset($ssid)) {
  session_start();
  if ($ssid!=session_id()) {
    if (@$_REQUEST['module']=='DrawingGame' && @$_REQUEST['cmd']=='upload_manual') {
      session_destroy();
      session_id($ssid);
    }
  }
}*/

require_once 'config.php';
if(UNDER_CONSTRUCTION) {
	echo 'Server vimua hiện quá tải! Bạn vui lòng quay lại sau';
	exit();
}

require 'init.php';

// tạo nick
//Messenger::genGuestNick();
if(user()->is_admin() and request('flush_cache')) {
	CSystem::$cache->flush();
}

CPage::load();
CSystem::end();